package com.inspur.sc.springboot.convert;

import com.inspur.sc.springboot.dto.SysUserDTO;
import com.inspur.sc.springboot.entity.SysUser;
import org.springframework.beans.BeanUtils;

public class SysUserDTOConvertSysUser {

    public static SysUser convert(SysUserDTO userDTO){
        SysUser sysUser=new SysUser();
        BeanUtils.copyProperties(userDTO,sysUser);
        return sysUser;
    }
}
